<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:spring="http://www.springframework.org/tags" version="2.0">
	<jsp:directive.page contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8" session="true" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />
	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><spring:message code="page.updateBonus.title" /> <c:if
		test="${bonus ne null}">
		<c:out value="${bonus.name}" />
	</c:if></title>
</head>
<body>
	<c:import url="header.jsp" />

	<c:if test="${bonus ne null }">
		<spring:message code="page.change" var="buttonUpdate" />
		<c:url value="/admin/updateBonus" var="updateRequest" />
		<div>
			<form action="${updateRequest}" method="post">
				<table>
					<tr>
						<td><spring:message code="customerpage.bonus.name" /> :</td>
						<td><input type="text" name="bName" value="${bonus.name}" /></td>
					</tr>
					<tr>
						<td><spring:message code="customerpage.bonus.amount" /> :</td>
						<td><input type="text" value="${bonus.amount}" name="bAmount" /></td>
					</tr>
					<tr>
						<td><spring:message code="customerpage.bonus.description" />
							:</td>
						<td><TEXTAREA name="bDescription" rows="5" cols="50"><c:out
									value="${bonus.description}" /></TEXTAREA></td>
					</tr>
					<tr>
						<td></td>
						<td></td>
					</tr>
					<tr>
						<td></td>
						<input type="hidden" value="${bonus.bonusId}" name="bonusId" />
						<td><INPUT type="submit" value="${buttonUpdate}" /></td>
					</tr>
				</table>
			</form>
		</div>
	</c:if>
</body>
	</html>
</jsp:root>